﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="PhanCongGiangDay.aspx.cs" Inherits="WTSQCB.PhanCongGiangDay" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;
        Phân công giảng dạy</p>
    <p>
        <asp:GridView ID="LichHocdgv" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="MaMonHoc,MaLop,MaHocKi" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="980px" Font-Size="Medium">
            <Columns>
                <asp:CommandField ShowSelectButton="True" ButtonType="Button" SelectText="CHỌN" />
                <asp:BoundField DataField="MaMonHoc" HeaderText="Mã môn học" ReadOnly="True" SortExpression="MaMonHoc" />
                <asp:BoundField DataField="TenMonHoc" HeaderText="Tên môn học" SortExpression="TenMonHoc" />
                <asp:BoundField DataField="MaLop" HeaderText="Mã lớp" ReadOnly="True" SortExpression="MaLop" />
                <asp:BoundField DataField="TenLop" HeaderText="Tên lớp" SortExpression="TenLop" />
                <asp:BoundField DataField="MaHocKi" HeaderText="Mã học kì" ReadOnly="True" SortExpression="MaHocKi" />
                <asp:BoundField DataField="TenHocKi" HeaderText="Tên học kì" SortExpression="TenHocKi" />
                <asp:BoundField DataField="MaGiaoVien" HeaderText="Mã giáo viên" SortExpression="MaGiaoVien" />
                <asp:BoundField DataField="TenGiaoVien" HeaderText="Tên giáo viên" SortExpression="TenGiaoVien" />
                <asp:BoundField DataField="NgayBatDau" HeaderText="Ngày bắt đầu" ReadOnly="True" SortExpression="NgayBatDau" />
                <asp:BoundField DataField="NgayKetThuc" HeaderText="Ngày kết thúc" ReadOnly="True" SortExpression="NgayKetThuc" />
                <asp:BoundField DataField="NgayThi" HeaderText="Ngày thi" ReadOnly="True" SortExpression="NgayThi" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </p>
    <p>
        &nbsp;<asp:Button ID="Thembtn" runat="server" OnClick="Button1_Click" Text="THÊM" Width="80px" />
        &nbsp;
        <asp:Button ID="Suabtn" runat="server" OnClick="Suabtn_Click" Text="SỬA" Width="80px" />
        &nbsp;
        <asp:Button ID="Xoabtn" runat="server" OnClick="Xoabtn_Click" OnClientClick="return confirm('Bạn có muốn Xóa ?')" Text="XÓA" Width="80px" />
    </p>
    <p>
        &nbsp;
        Thông tin chi tiết:</p>
    <p>
        &nbsp;
        Mã môn học:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="MaMonHoctxt" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="MaMonHoctxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
    </p>
    <p>
        &nbsp;
        Mã lớp:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="MaLoptxt" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="MaLoptxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
    </p>
    <p>
        &nbsp;
        Mã học kì:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="MaHocKitxt" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="MaHocKitxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
    </p>
    <p>
        &nbsp;
        Mã giáo viên:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="MaGiaoVientxt" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="MaGiaoVientxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
    </p>
    <p>
        &nbsp;
        Bắt đầu Ngày:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="NgayBDddl" runat="server">
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tháng:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="ThangBDddl" runat="server">
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Năm:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:DropDownList ID="NamBDddl" runat="server">
        </asp:DropDownList>
    </p>
    <p>
        &nbsp;
        Kết thúc ngày:&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="NgayKTddl" runat="server">
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tháng:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:DropDownList ID="ThangKTddl" runat="server">
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Năm:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:DropDownList ID="NamKTddl" runat="server">
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
    <p>
        &nbsp;
        Thi ngày:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="NgayThiddl" runat="server">
        </asp:DropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tháng:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="ThangThiddl" runat="server">
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Năm:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:DropDownList ID="NamThiddl" runat="server">
        </asp:DropDownList>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WebDiemTSQCBConnectionString %>" SelectCommand="LichHocLoad" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    </p>
</asp:Content>
